/**
 * Copyright (c) 2015-2017, Henry Yang 杨勇 (gismail@foxmail.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.mapfinal.portal.model.sql;

import com.lambkit.db.sql.ConditionMode;
import com.lambkit.db.sql.column.Column;
import com.lambkit.db.sql.column.Columns;
import com.lambkit.db.sql.column.Example;

import java.io.Serializable;
import java.util.List;

/**
 * @author yangyong 
 * @website: www.lambkit.com
 * @email: gismail@foxmail.com
 * @date 2019-05-23
 * @version 1.0
 * @since 1.0
 */
public class MenuCatCriteria extends Columns implements Serializable {
	private static final long serialVersionUID = 1L;
	
	public static MenuCatCriteria create() {
		return new MenuCatCriteria();
	}
	
	public static MenuCatCriteria create(Column column) {
		MenuCatCriteria that = new MenuCatCriteria();
		that.add(column);
        return that;
    }

    public static MenuCatCriteria create(String name, Object value) {
        return (MenuCatCriteria) create().eq(name, value);
    }
    
    public Example example() {
    	return Example.create("cms_menu_cat", this);
    }
    
    /**
     * equals
     *
     * @param name
     * @param value
     * @return
     */
    public MenuCatCriteria eq(String name, Object value) {
    	super.eq(name, value);
        return this;
    }

    /**
     * not equals !=
     *
     * @param name
     * @param value
     * @return
     */
    public MenuCatCriteria ne(String name, Object value) {
    	super.ne(name, value);
        return this;
    }


    /**
     * like
     *
     * @param name
     * @param value
     * @return
     */

    public MenuCatCriteria like(String name, Object value) {
    	super.like(name, value);
        return this;
    }
    
    public MenuCatCriteria notLike(String name, Object value) {
    	super.notLike(name, value);
        return this;
    }

    /**
     * 大于 great than
     *
     * @param name
     * @param value
     * @return
     */
    public MenuCatCriteria gt(String name, Object value) {
    	super.gt(name, value);
        return this;
    }

    /**
     * 大于等于 great or equal
     *
     * @param name
     * @param value
     * @return
     */
    public MenuCatCriteria ge(String name, Object value) {
    	super.ge(name, value);
        return this;
    }

    /**
     * 小于 less than
     *
     * @param name
     * @param value
     * @return
     */
    public MenuCatCriteria lt(String name, Object value) {
    	super.lt(name, value);
        return this;
    }

    /**
     * 小于等于 less or equal
     *
     * @param name
     * @param value
     * @return
     */
    public MenuCatCriteria le(String name, Object value) {
    	super.le(name, value);
        return this;
    }
    
    public MenuCatCriteria isnull(String name) {
    	super.isnull(name);
        return this;
    } 

    public MenuCatCriteria notNull(String name) {
    	super.notNull(name);
        return this;
    } 
    
    public MenuCatCriteria empty(String name) {
    	super.empty(name);
        return this;
    } 
    
    public MenuCatCriteria notEmpty(String name) {
    	super.notEmpty(name);
        return this;
    } 
    
    public MenuCatCriteria add(Column column) {
    	super.add(column);
    	return this;
    }
    
    /**************************/
	
	public void addCriterion(String name, Object value, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value == null) {
			 throw new RuntimeException("Value for " + property + " cannot be null");
		 }
		 add(Column.create(name, value, logic, typeHandler, valueType));
	}
   
	public void addCriterion(String name, Object value1, Object value2, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value1 == null || value2 == null) {
			 throw new RuntimeException("Between values for " + property + " cannot be null");
		 }
		 add(Column.create(name, value1, value2, logic, typeHandler, valueType));
	}
		 
	public MenuCatCriteria andIdIsNull() {
		isnull("id");
		return this;
	}
	
	public MenuCatCriteria andIdIsNotNull() {
		notNull("id");
		return this;
	}
	
	public MenuCatCriteria andIdIsEmpty() {
		empty("id");
		return this;
	}

	public MenuCatCriteria andIdIsNotEmpty() {
		notEmpty("id");
		return this;
	}
       public MenuCatCriteria andIdEqualTo(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.EQUAL, "id", "java.lang.Long", "Float");
          return this;
      }

      public MenuCatCriteria andIdNotEqualTo(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.NOT_EQUAL, "id", "java.lang.Long", "Float");
          return this;
      }

      public MenuCatCriteria andIdGreaterThan(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.GREATER_THEN, "id", "java.lang.Long", "Float");
          return this;
      }

      public MenuCatCriteria andIdGreaterThanOrEqualTo(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.GREATER_EQUAL, "id", "java.lang.Long", "Float");
          return this;
      }

      public MenuCatCriteria andIdLessThan(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.LESS_THEN, "id", "java.lang.Long", "Float");
          return this;
      }

      public MenuCatCriteria andIdLessThanOrEqualTo(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.LESS_EQUAL, "id", "java.lang.Long", "Float");
          return this;
      }

      public MenuCatCriteria andIdBetween(java.lang.Long value1, java.lang.Long value2) {
    	  addCriterion("id", value1, value2, ConditionMode.BETWEEN, "id", "java.lang.Long", "Float");
    	  return this;
      }

      public MenuCatCriteria andIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
          addCriterion("id", value1, value2, ConditionMode.NOT_BETWEEN, "id", "java.lang.Long", "Float");
          return this;
      }
        
      public MenuCatCriteria andIdIn(List<java.lang.Long> values) {
          addCriterion("id", values, ConditionMode.IN, "id", "java.lang.Long", "Float");
          return this;
      }

      public MenuCatCriteria andIdNotIn(List<java.lang.Long> values) {
          addCriterion("id", values, ConditionMode.NOT_IN, "id", "java.lang.Long", "Float");
          return this;
      }
	public MenuCatCriteria andNameIsNull() {
		isnull("name");
		return this;
	}
	
	public MenuCatCriteria andNameIsNotNull() {
		notNull("name");
		return this;
	}
	
	public MenuCatCriteria andNameIsEmpty() {
		empty("name");
		return this;
	}

	public MenuCatCriteria andNameIsNotEmpty() {
		notEmpty("name");
		return this;
	}
        public MenuCatCriteria andNameLike(java.lang.String value) {
    	   addCriterion("name", value, ConditionMode.FUZZY, "name", "java.lang.String", "Float");
    	   return this;
      }

      public MenuCatCriteria andNameNotLike(java.lang.String value) {
          addCriterion("name", value, ConditionMode.NOT_FUZZY, "name", "java.lang.String", "Float");
          return this;
      }
      public MenuCatCriteria andNameEqualTo(java.lang.String value) {
          addCriterion("name", value, ConditionMode.EQUAL, "name", "java.lang.String", "String");
          return this;
      }

      public MenuCatCriteria andNameNotEqualTo(java.lang.String value) {
          addCriterion("name", value, ConditionMode.NOT_EQUAL, "name", "java.lang.String", "String");
          return this;
      }

      public MenuCatCriteria andNameGreaterThan(java.lang.String value) {
          addCriterion("name", value, ConditionMode.GREATER_THEN, "name", "java.lang.String", "String");
          return this;
      }

      public MenuCatCriteria andNameGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("name", value, ConditionMode.GREATER_EQUAL, "name", "java.lang.String", "String");
          return this;
      }

      public MenuCatCriteria andNameLessThan(java.lang.String value) {
          addCriterion("name", value, ConditionMode.LESS_THEN, "name", "java.lang.String", "String");
          return this;
      }

      public MenuCatCriteria andNameLessThanOrEqualTo(java.lang.String value) {
          addCriterion("name", value, ConditionMode.LESS_EQUAL, "name", "java.lang.String", "String");
          return this;
      }

      public MenuCatCriteria andNameBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("name", value1, value2, ConditionMode.BETWEEN, "name", "java.lang.String", "String");
    	  return this;
      }

      public MenuCatCriteria andNameNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("name", value1, value2, ConditionMode.NOT_BETWEEN, "name", "java.lang.String", "String");
          return this;
      }
        
      public MenuCatCriteria andNameIn(List<java.lang.String> values) {
          addCriterion("name", values, ConditionMode.IN, "name", "java.lang.String", "String");
          return this;
      }

      public MenuCatCriteria andNameNotIn(List<java.lang.String> values) {
          addCriterion("name", values, ConditionMode.NOT_IN, "name", "java.lang.String", "String");
          return this;
      }
	public MenuCatCriteria andSystemIdIsNull() {
		isnull("system_id");
		return this;
	}
	
	public MenuCatCriteria andSystemIdIsNotNull() {
		notNull("system_id");
		return this;
	}
	
	public MenuCatCriteria andSystemIdIsEmpty() {
		empty("system_id");
		return this;
	}

	public MenuCatCriteria andSystemIdIsNotEmpty() {
		notEmpty("system_id");
		return this;
	}
       public MenuCatCriteria andSystemIdEqualTo(java.lang.Long value) {
          addCriterion("system_id", value, ConditionMode.EQUAL, "systemId", "java.lang.Long", "Float");
          return this;
      }

      public MenuCatCriteria andSystemIdNotEqualTo(java.lang.Long value) {
          addCriterion("system_id", value, ConditionMode.NOT_EQUAL, "systemId", "java.lang.Long", "Float");
          return this;
      }

      public MenuCatCriteria andSystemIdGreaterThan(java.lang.Long value) {
          addCriterion("system_id", value, ConditionMode.GREATER_THEN, "systemId", "java.lang.Long", "Float");
          return this;
      }

      public MenuCatCriteria andSystemIdGreaterThanOrEqualTo(java.lang.Long value) {
          addCriterion("system_id", value, ConditionMode.GREATER_EQUAL, "systemId", "java.lang.Long", "Float");
          return this;
      }

      public MenuCatCriteria andSystemIdLessThan(java.lang.Long value) {
          addCriterion("system_id", value, ConditionMode.LESS_THEN, "systemId", "java.lang.Long", "Float");
          return this;
      }

      public MenuCatCriteria andSystemIdLessThanOrEqualTo(java.lang.Long value) {
          addCriterion("system_id", value, ConditionMode.LESS_EQUAL, "systemId", "java.lang.Long", "Float");
          return this;
      }

      public MenuCatCriteria andSystemIdBetween(java.lang.Long value1, java.lang.Long value2) {
    	  addCriterion("system_id", value1, value2, ConditionMode.BETWEEN, "systemId", "java.lang.Long", "Float");
    	  return this;
      }

      public MenuCatCriteria andSystemIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
          addCriterion("system_id", value1, value2, ConditionMode.NOT_BETWEEN, "systemId", "java.lang.Long", "Float");
          return this;
      }
        
      public MenuCatCriteria andSystemIdIn(List<java.lang.Long> values) {
          addCriterion("system_id", values, ConditionMode.IN, "systemId", "java.lang.Long", "Float");
          return this;
      }

      public MenuCatCriteria andSystemIdNotIn(List<java.lang.Long> values) {
          addCriterion("system_id", values, ConditionMode.NOT_IN, "systemId", "java.lang.Long", "Float");
          return this;
      }
	public MenuCatCriteria andRemarkIsNull() {
		isnull("remark");
		return this;
	}
	
	public MenuCatCriteria andRemarkIsNotNull() {
		notNull("remark");
		return this;
	}
	
	public MenuCatCriteria andRemarkIsEmpty() {
		empty("remark");
		return this;
	}

	public MenuCatCriteria andRemarkIsNotEmpty() {
		notEmpty("remark");
		return this;
	}
        public MenuCatCriteria andRemarkLike(java.lang.String value) {
    	   addCriterion("remark", value, ConditionMode.FUZZY, "remark", "java.lang.String", "Float");
    	   return this;
      }

      public MenuCatCriteria andRemarkNotLike(java.lang.String value) {
          addCriterion("remark", value, ConditionMode.NOT_FUZZY, "remark", "java.lang.String", "Float");
          return this;
      }
      public MenuCatCriteria andRemarkEqualTo(java.lang.String value) {
          addCriterion("remark", value, ConditionMode.EQUAL, "remark", "java.lang.String", "String");
          return this;
      }

      public MenuCatCriteria andRemarkNotEqualTo(java.lang.String value) {
          addCriterion("remark", value, ConditionMode.NOT_EQUAL, "remark", "java.lang.String", "String");
          return this;
      }

      public MenuCatCriteria andRemarkGreaterThan(java.lang.String value) {
          addCriterion("remark", value, ConditionMode.GREATER_THEN, "remark", "java.lang.String", "String");
          return this;
      }

      public MenuCatCriteria andRemarkGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("remark", value, ConditionMode.GREATER_EQUAL, "remark", "java.lang.String", "String");
          return this;
      }

      public MenuCatCriteria andRemarkLessThan(java.lang.String value) {
          addCriterion("remark", value, ConditionMode.LESS_THEN, "remark", "java.lang.String", "String");
          return this;
      }

      public MenuCatCriteria andRemarkLessThanOrEqualTo(java.lang.String value) {
          addCriterion("remark", value, ConditionMode.LESS_EQUAL, "remark", "java.lang.String", "String");
          return this;
      }

      public MenuCatCriteria andRemarkBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("remark", value1, value2, ConditionMode.BETWEEN, "remark", "java.lang.String", "String");
    	  return this;
      }

      public MenuCatCriteria andRemarkNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("remark", value1, value2, ConditionMode.NOT_BETWEEN, "remark", "java.lang.String", "String");
          return this;
      }
        
      public MenuCatCriteria andRemarkIn(List<java.lang.String> values) {
          addCriterion("remark", values, ConditionMode.IN, "remark", "java.lang.String", "String");
          return this;
      }

      public MenuCatCriteria andRemarkNotIn(List<java.lang.String> values) {
          addCriterion("remark", values, ConditionMode.NOT_IN, "remark", "java.lang.String", "String");
          return this;
      }
	public MenuCatCriteria andActiveIsNull() {
		isnull("active");
		return this;
	}
	
	public MenuCatCriteria andActiveIsNotNull() {
		notNull("active");
		return this;
	}
	
	public MenuCatCriteria andActiveIsEmpty() {
		empty("active");
		return this;
	}

	public MenuCatCriteria andActiveIsNotEmpty() {
		notEmpty("active");
		return this;
	}
       public MenuCatCriteria andActiveEqualTo(java.lang.Integer value) {
          addCriterion("active", value, ConditionMode.EQUAL, "active", "java.lang.Integer", "Float");
          return this;
      }

      public MenuCatCriteria andActiveNotEqualTo(java.lang.Integer value) {
          addCriterion("active", value, ConditionMode.NOT_EQUAL, "active", "java.lang.Integer", "Float");
          return this;
      }

      public MenuCatCriteria andActiveGreaterThan(java.lang.Integer value) {
          addCriterion("active", value, ConditionMode.GREATER_THEN, "active", "java.lang.Integer", "Float");
          return this;
      }

      public MenuCatCriteria andActiveGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("active", value, ConditionMode.GREATER_EQUAL, "active", "java.lang.Integer", "Float");
          return this;
      }

      public MenuCatCriteria andActiveLessThan(java.lang.Integer value) {
          addCriterion("active", value, ConditionMode.LESS_THEN, "active", "java.lang.Integer", "Float");
          return this;
      }

      public MenuCatCriteria andActiveLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("active", value, ConditionMode.LESS_EQUAL, "active", "java.lang.Integer", "Float");
          return this;
      }

      public MenuCatCriteria andActiveBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("active", value1, value2, ConditionMode.BETWEEN, "active", "java.lang.Integer", "Float");
    	  return this;
      }

      public MenuCatCriteria andActiveNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("active", value1, value2, ConditionMode.NOT_BETWEEN, "active", "java.lang.Integer", "Float");
          return this;
      }
        
      public MenuCatCriteria andActiveIn(List<java.lang.Integer> values) {
          addCriterion("active", values, ConditionMode.IN, "active", "java.lang.Integer", "Float");
          return this;
      }

      public MenuCatCriteria andActiveNotIn(List<java.lang.Integer> values) {
          addCriterion("active", values, ConditionMode.NOT_IN, "active", "java.lang.Integer", "Float");
          return this;
      }
}